package com.dearbinge.utils;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;

public class PageResult<T> implements Serializable {
    private static final long serialVersionUID = -8768394249170248688L;
    private List<T> data;
    private Long total;

    public PageResult(List<T> data, Long total) {
        this.data = data;
        this.total = total;
    }

    public PageResult() {
        this.data = new ArrayList();
        this.total = 0L;
    }

    public List<T> getData() {
        return this.data;
    }

    public void setData(List<T> data) {
        this.data = data;
    }

    public Long getTotal() {
        return this.total;
    }

    public void setTotal(Long total) {
        this.total = total;
    }

}
